﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListCompetition.aspx.cs" Inherits="_Default" MasterPageFile="~/Teacher/Teacher.master" Title = "List of competition"%>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxNewsControl" tagprefix="dx" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" >
    <dx:ASPxNewsControl ID="ASPxNewsControl1" runat="server" 
        CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
        DataSourceID="SqlDataSource1" DateField="Start_Date" 
        HeaderTextField="Competition_Name" NameField="CompetitionID" 
        NavigateUrlField="CompetitionID" 
        NavigateUrlFormatString="~/Teacher/ScoringForPainting.aspx?id={0}" 
        PagerAlign="Justify" PagerPanelSpacing="1px" 
        SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
        TextField="Competition_Detail" Width="100%" RowPerPage="7">
        <Items>
            <dx:NewsItem Date="2013-01-13" HeaderText="Đèo ngang" Name="4" NavigateUrl="4" 
                Text="Bước tới đèo ngang bóng xế tà">
            </dx:NewsItem>
            <dx:NewsItem Date="2013-01-07" HeaderText="Ao thu" Name="1" NavigateUrl="1" 
                Text="Ao thu lạnh lẽo, nước trong veo">
            </dx:NewsItem>
            <dx:NewsItem Date="2013-01-07" HeaderText="Đầm sen" Name="2" 
                NavigateUrl="2" Text="Trong đầm gì đẹp bằng sen">
            </dx:NewsItem>
            <dx:NewsItem Date="2013-01-07" HeaderText="Người hàng xóm" Name="3" 
                NavigateUrl="3" Text="Nhà nàng ở cạnh nhà tôi..">
            </dx:NewsItem>
        </Items>
        <ItemSettings MaxLength="100" ShowHeaderAsLink="True" 
            TailPosition="KeepWithLastWord" TailText="List of posting">
        </ItemSettings>
        <BackToTopImage>
            <SpriteProperties CssClass="dxWeb_ncBackToTop_DevEx" />
        </BackToTopImage>
        <BackToTopStyle HorizontalAlign="Right" ImageSpacing="3px">
        </BackToTopStyle>
        <ItemDateStyle Spacing="0px">
        </ItemDateStyle>
        <ItemContentStyle LineHeight="14px">
        </ItemContentStyle>
        <ItemHeaderStyle Font-Bold="True" Font-Names="Arial" Font-Size="Large" 
            ForeColor="#FF6600">
        </ItemHeaderStyle>
        <ItemLeftPanelStyle Spacing="37px">
            <Paddings PaddingTop="3px" />
        </ItemLeftPanelStyle>
        <PagerSettings ShowDefaultImages="True">
            <AllButton Text="">
            </AllButton>
            <FirstPageButton Text="">
            </FirstPageButton>
            <LastPageButton Text="">
            </LastPageButton>
            <NextPageButton Text="">
            </NextPageButton>
            <PrevPageButton Text="">
            </PrevPageButton>
            <Summary Position="Inside" />
        </PagerSettings>
        <LoadingPanelImage Url="~/App_Themes/DevEx/Web/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <DisabledStyle ForeColor="#B1B1B8">
        </DisabledStyle>
    </dx:ASPxNewsControl>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Institte_of_Fine_ArtsConnectionString %>" 
        
        
        SelectCommand="SELECT CompetitionID, Competition_Name, Competition_Detail, Start_Date, StaffID FROM Competition WHERE (StaffID = @StaffID) ORDER BY Start_Date DESC">
        <SelectParameters>
            <asp:SessionParameter Name="StaffID" SessionField="Teacher" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>